home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_1 / solver.tip < prev    next >
Internet Message Format  |  1995-03-23  |  3KB

  1. From comp.sys.hp48 Sat Mar 14 16:05:52 1992
  2. Path: seq!rock!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!psuvax1!psuvm!rjs106
  3. From: RJS106@psuvm.psu.edu (Pierre Stanton)
  4. Newsgroups: comp.sys.hp48
  5. Subject: Very Small, Useful Routine
  6. Message-ID: <92074.132005RJS106@psuvm.psu.edu>
  7. Date: 14 Mar 92 18:20:05 GMT
  8. Organization: Penn State University
  9. Lines: 49
  10. Supersedes: <92074.013834RJS106@psuvm.psu.edu>
  11.  
  12. I've created this very simple routine about 3 yrs ago and have been
  13. using it often on my hp28.  The hp48 version goes as follows.
  14.  
  15.  << 'your equation here' STEQ 30 MENU >>
  16.  
  17. What this simple program does is takes what ever equation is
  18. inside the single quotes and stores it in the hp48's reserve
  19. variable for the solver called STEQ.  Then it goes directly
  20. to the solver menu screen.
  21.  
  22. EXAMPLE:  using pythagorian's theorem
  23.  
  24. 'PYTHAG' CHDIR                      ;;  creat a directory
  25. PYTHAG                              ;;  change to the directory you just made
  26.  
  27. << 'C:2=A:2+B:2' STEQ 30 MENU >>    ;;  create the program
  28.  
  29. 'PYTHAG.' STO                        ;;  store the program under a different
  30.                                      ;;  name than the directory name
  31.  PYTHAG.                             ;;  execute the program via menu key
  32.  
  33. Now just hit the menu key for 'PYTHAG.' and voila your in the solver
  34. with the equation already there.
  35.  
  36. NOTES:  I would highly recommend creating a directory first with
  37. a descriptive name of your equation, then go into this directory,
  38. create this program with your own equation in it, then store the
  39. program under a simular but different descriptive name (i.e. don't give it
  40. the exact same name as the directory).  The reason for all of this
  41. is to prevent cluttering up your current directory.  Whenever you use the
  42. solver, every time you use a variable that is not defined, the solver will
  43. create a global variable for that variable.  From the above sample A B C EQ
  44. and PYTHAG would appear in the variable menus boxes.  To make 'PYTHAG.' be
  45. the 1st variable in the menu type { PYTHAG. } ORDER     This is especially
  46. useful when you have an equation with lots of variables and to run the
  47. program you have to flip through the pages (i.e. using NXT or PREV) just
  48. to find it.
  49.  
  50. If anyone finds this routine useful, please let me know by personal e-mail
  51.  
  52. Pierre
  53. *****************************************************************
  54. *  Pierre-Andre Stanton                                         *
  55. *  rjs106@psuvm.psu.edu   <=== BITNET, E-MAIL ADDRESS           *
  56. *                                                               *
  57. *  Mechanical Engineer/Business Management/French student       *
  58. *  Penn State Univ.  Behrend College branch                     *
  59. *                                                               *
  60. *****************************************************************
  61.  
  62.